package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户问卷答案业务对象
 *
 * @author ruoyi
 * @date 2024-12-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class InvestigationUserAnswerBo extends BaseEntity {

    /**
     * 题目
     */
    @NotNull(message = "题目不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionId;

    /**
     * 答案
     */
    @NotBlank(message = "答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answer;
}
